<div class="phongs index">
<h2><?php __('Thông Tin Phòng Thực Hành');?></h2>
<p>
<?php
echo $paginator->counter(array(
/*'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)*/
));
?></p>
<table cellpadding="0" cellspacing="0">
<tr>
	<th><?php echo $paginator->sort('STT');?></th>
	<th><?php echo $paginator->sort('Phòng', 'phong.phong');?></th>
	<th><?php echo $paginator->sort('Số lượng Máy', 'phong.soluongmay');?></th>
	<th class="actions"><?php __('Thực hiện');?></th>
</tr>
<?php
$i = 0;$stt=0;
foreach ($phongs as $phong):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
				<?php 
                $stt=$stt+1;
                echo $stt; ?>
		</td>
		<td>
			<?php echo $phong['Phong']['phong']; ?>
		</td>
		<td>
			<?php echo $phong['Phong']['soluongmay']; ?>
		</td>
		<td class="actions">
			<?php echo $html->link(__('Sửa', true), array('action' => 'edit', $phong['Phong']['id'])); ?>
			<?php echo $html->link(__('Xóa', true), array('action' => 'delete', $phong['Phong']['id']), null, sprintf(__('Bạn có chắc muốn xóa không?', true), $phong['Phong']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('Trước', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('Sau', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Thêm phòng', true), array('action' => 'add')); ?></li>
	</ul>
</div>
